file(GLOB_RECURSE TESTMATHS_HEADER_FILES
		RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
		"*.h" "*.hpp" "*.inl"
		)
file(GLOB_RECURSE TESTMATHS_SOURCE_FILES
		RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
		"*.c" "*.cpp" "*.rc"
		)

add_executable(TestMaths ${TESTMATHS_HEADER_FILES} ${TESTMATHS_SOURCE_FILES})

target_compile_features(TestMaths PUBLIC cxx_std_17)
target_include_directories(TestMaths PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_link_libraries(TestMaths PRIVATE Acid::Acid)

set_target_properties(TestMaths PROPERTIES
		FOLDER "Acid/Tests"
		)
if(UNIX AND APPLE)
	set_target_properties(TestMaths PROPERTIES
			MACOSX_BUNDLE_BUNDLE_NAME "Test Maths"
			MACOSX_BUNDLE_SHORT_VERSION_STRING ${ACID_VERSION}
			MACOSX_BUNDLE_LONG_VERSION_STRING ${ACID_VERSION}
			MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/CMake/Info.plist.in"
			)
endif()

# add_test(NAME "Maths" COMMAND "TestMaths")

if(ACID_INSTALL_EXAMPLES)
	install(TARGETS TestMaths
			RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
			ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
			)
endif()

include(AcidGroupSources)
acid_group_sources("${CMAKE_CURRENT_SOURCE_DIR}" "/" "" "${TESTMATHS_HEADER_FILES}")
acid_group_sources("${CMAKE_CURRENT_SOURCE_DIR}" "/" "" "${TESTMATHS_SOURCE_FILES}")
